module.exports = function (app) {
  const {
    Bone,
    DataTypes: { STRING, DATE, JSON, BIGINT },
  } = app.model;
  class DictType extends Bone {
    static table = 'dict_type';
    static attributes = {
      id: {
        type: BIGINT,
        primaryKey: true,
      },
      name: {
        type: STRING,
      },
      code: {
        type: STRING,
      },
      // 显示顺序
      status: {
        type: BIGINT,
        defaultValue: 1,
      },
      createdAt: {
        type: DATE,
      },
      updatedAt: {
        type: DATE,
      },
      deleteAt: {
        type: DATE,
      },
    };
  }
  return DictType;
};
